package com.wangmeng.book.job;

import com.wangmeng.book.updater.BookFromSina;
import com.wangmeng.book.updater.BookFromSohu;
import com.wangmeng.book.updater.BookFromTx;
import com.wangmeng.book.updater.BookFromWy;
import org.apache.log4j.Logger;

/**
 * User: 王猛
 * Date: 13-9-23
 */
public class UpdateBookListJob implements Runnable {
    private static final Logger logger = Logger.getLogger(UpdateBookListJob.class);

    public void run() {
        try {
            BookFromTx bft = new BookFromTx();
            bft.updateList();
            BookFromWy bfw = new BookFromWy();
            bfw.updateList();
//            BookFromSina bfs = new BookFromSina();
//            bfs.updateList();
            BookFromSohu bfu = new BookFromSohu();
            bfu.updateList();
        } catch (Exception ex) {
            logger.error("更新图书目录异常", ex);
        }
    }
}
